package com.luzhikun.exer;

import com.luzhikun.exer.bean.User;
import com.luzhikun.exer.dao.UserDao;
import com.luzhikun.exer.util.JDBCUtil;
import org.junit.Test;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * @Author Rookie Coder
 * @Description
 * @Date
 **/
public class Test1 {

    @Test
    public void  test1(){

        JDBCUtil jdbcUtil=new JDBCUtil();
        Connection connection = null;
        try {
            connection = jdbcUtil.getConnection();
            System.out.println(connection);
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }

        UserDao userDao=new UserDao();
        User user = userDao.userLogin("鲁志坤", "140489lu");
        System.out.println(user);


    }

}
